/* 修复模态框样式问题 */

/* 覆盖原有的模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* 更深的背景色 */
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* 确保内容居中显示 */
.modal-overlay > div {
    margin: 0 auto;
    max-width: 100%;
}

/* 修复模态框阴影和定位 */
.bg-white.rounded-2xl.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    position: relative;
    margin: 0 auto;
    max-width: 95%;
    width: auto;
    transform: translateY(0);
    animation: modalFadeIn 0.3s ease forwards;
}

/* 模态框进入动画 */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 确保模态框内容不会溢出屏幕 */
.modal-overlay > div {
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* 修复移动端样式 */
@media (max-width: 640px) {
    .bg-white.rounded-2xl.shadow-2xl {
        width: 95%;
        max-width: 95%;
    }
    
    .modal-overlay {
        padding: 10px;
    }
} 